package cn.app.android.sichuanxiaoke.com.xiaokeapp.fragment;

import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v4.app.Fragment;
import android.support.v7.widget.LinearLayoutManager;
import android.support.v7.widget.RecyclerView;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;

import butterknife.BindView;
import butterknife.ButterKnife;
import cn.app.android.sichuanxiaoke.com.xiaokeapp.R;
import cn.app.android.sichuanxiaoke.com.xiaokeapp.adapter.HomeFragmentAdapter;

/**
 * Created by zhangyue on 2017/9/3.
 */

public class NewHomeFragment extends Fragment {
    @BindView(R.id.recyler)
    RecyclerView mrecyler;

    @Nullable
    @Override
    public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {
        View view = inflater.inflate(R.layout.home_fragment_tab_home, container, false);
        ButterKnife.bind(this,view);
        mrecyler.setLayoutManager(new LinearLayoutManager(getContext()));
        mrecyler.setAdapter(new HomeFragmentAdapter(getContext()));
        return view;
    }
}
